function avatarbest() {
	this.redirect = function(typeid, obj) {
		var _this = $(obj);
		var oldclick = _this.attr("onclick");
		glb.ajax(glb.ajaxUcUrl + "avatarbest", "JSON", "typeid=" + typeid, function() {
			_this.attr("onclick", "")
		}, function(data) {
			var d = eval(data);
			_this.attr("onclick", oldclick);
			if (d.status == 1) {
				location.href = "/uc/sets/avatar.html"
			} else {
				if (d.status == 2) {
					var info =
						'<p class="avainfo">鎮ㄥ皻鏈紑閫氶珮绾ф帹骞挎湇鍔★紝娌℃湁鐗规潈浣跨敤楂樼骇褰㈣薄鐗堬紒<a href="/company/item/adv.html" class="more">鐐瑰嚮浜嗚В楂樼骇鎺ㄥ箍>></a><span><i><b>寮€閫氬悗鐨勫伐浣滃绀轰緥</b></i><a href="/company/item/adv.html" class="home" title="鐐瑰嚮浜嗚В璇︽儏"></a></span></p>';
					$.jfn("鎻愮ず", info, "鐐瑰嚮浜嗚В璇︽儏", 800, function() {
						location.href = "/company/item/adv.html"
					})
				} else {
					if (d.status == 3 || d.status == 5) {
						location.reload()
					} else {
						if (d.status == 4) {
							var info =
								'<p class="avainfo">褰撳墠澶村儚鐓х墖涓嶇鍚堝舰璞＄収瑕佹眰锛岃閲嶆柊涓婁紶绗﹀悎瑕佹眰鐨勫ご鍍忕収鐗囷紒<a href="/uc/sets/avatar.html?tid=2" class="more">閲嶆柊涓婁紶澶村儚>></a><span><i><b>楂樼骇褰㈣薄鐗堢ず渚�</b></i><a href="/uc/sets/avatar.html" class="home" title="杩涘叆閲嶆柊涓婁紶"></a></span></p>';
							$.jfn("鎻愮ず", info, "閲嶆柊涓婁紶澶村儚", 800, function() {
								location.href = "/uc/sets/avatar.html"
							})
						} else {
							if (d.status == 6) {
								location.href = "/uc/sets/avatar.html"
							} else {
								location.href = "/reg/login.html"
							}
						}
					}
				}
			}
		}, function() {
			_this.attr("onclick", "");
			o.jalert("淇濆瓨澶辫触锛岀郴缁熺箒蹇欙紒")
		})
	};
	this.jalert = function(info) {
		$.jalerttimer("鎿嶄綔鎻愮ず", info, 550, null, null)
	}
};
